/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ac.engin.setting;

import ac.uitls.data;
import tmp.ac.engin.setting.*;
import tmp.ac.lib.tools.uiUtil;

/**
 *
 * @author ismail
 */
public class genSetting {

    ac.uitls.propertiesOperation op = new ac.uitls.propertiesOperation();

    public String updateSetting(String[] data) {
        String returnData = "";
        returnData += op.setProperty("lang", data[0]);
        returnData += op.setProperty("style", data[1]);
        returnData += op.setProperty("viewInfoAuto", data[02]);
        if (returnData.trim().equals("")) {
            returnData = op.getWord("label.updateMessage");
        }
        return returnData;
    }

    public String defSetting() {

        String returnData = "";
        returnData += op.setProperty("lang", "en");
        returnData += op.setProperty("style", "default");

        returnData += op.setProperty("viewInfoAuto", "0");

        if (returnData.trim().equals("")) {
            returnData = op.getWord("label.defaultMessage");
        }

        return returnData;
    }

    public String[] getGenSetting() {

        String[] returnData = {op.getProperty("lang"), op.getProperty("style"), op.getProperty("viewInfoAuto")};

        return returnData;
    }

}
